MediaWiki talk:Gadget-modrollback.js
Appearance
Possible issues
[edit]Just looking at the code, I suspect that unescape
might be causing problems with some usernames (encode/decodeURIComponent is usually better) and wgServer + '/wiki/'
is not compatible with secure login. —AlexSm 22:14, 23 June 2008 (UTC)
- Compare to m:MediaWiki:Gadget-modrollback.js — Mike.lifeguard | @en.wb 02:48, 7 November 2008 (UTC)
- I've fixed the bugs mentioned by AlexSm (by using
wgScript
and by not decoding the username at all), and tweaked the AJAX code to usesajax_init_object()
from ajax.js for wider browser compatibility. Still, the script has other issues. One is that it only affects the rollback links in diffs, not in user contribs, article histories or elsewhere. Another is that it doesn't check if the rollback succeeded. One way to fix this would be to use API rollback. Another would be to change the script not to modify the links at all, but simply to trigger on the rollback result page (which is easily identifiable usingwgAction == "rollback"
, and appears to contain a diff table if and only if the rollback succeeded). —Ilmari Karonen (talk) 16:19, 11 November 2008 (UTC)
- I've fixed the bugs mentioned by AlexSm (by using
Protected edit request on 18 July 2014
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please remove "&smaxage=21600&maxage=86400
" as in mw:Special:Diff/1068457. These parameters are not necessary.
Helder.wiki 16:06, 18 July 2014 (UTC)